package com.irdstudio.apicenter.gateway.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.irdstudio.apicenter.gateway.comm.MaccsPacket;
import com.irdstudio.apicenter.gateway.web.MaccsException;
import com.irdstudio.apicenter.gateway.web.MaccsTradeDefineVo;
import com.irdstudio.apicenter.gateway.web.view.View;

/**
 * 接口(定义控制器须实现的方法)
 * @author guangming.li
 * @version 1.0
 * @date 2015-05-21
 */
public interface IController {
    
	/**
	 * 控制器执行方法
	 * @param tradeDefine 包括要执行的交易信息
	 * @param inPacket 封装好的请求数据
	 * @param request 
	 * @param response
	 * @return
	 */
	public View execute(MaccsTradeDefineVo tradeDefine, MaccsPacket inPacket,
			HttpServletRequest request, HttpServletResponse response)
			throws MaccsException;
}
